package ucm;

import model.User;

/**
 * UCDeleteManager
 *
 * Primary Actor: User
 * Goal: Delete Manager account
 * Precondition: Connected to database. Account exists on database. Admin is logged on.
 * Postcondition: Account is deleted from database
 *
 * @author Tobias Robinson
 */
public class UCDeleteManager {


    public UCDeleteManager() {
        run();
    }

    /**
     * 1. Actor selects Delete Manager.
     * 2. The system requests the actor to enter username and password.
     * 4. System verifies user input.
     * 5. System removes user from database.
     * 6. System notifies actor user has been deleted.
     */
    public void run() {
        User.loadDeleteUserView("man");
    }

}
